package com.jhh.pay.center.api.data;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.jhh.pay.center.model.TradeState;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Map;
import java.util.TreeMap;

/**
 * @author tangxd
 * @Description: TODO
 * @date 2017/12/1
 */
@Getter
@Setter
public class Result implements Serializable {

    public Result(TradeState state, String sid, String code, String msg) {
        this.state = state;
        this.sid = sid;
        this.code = code;
        this.msg = msg;
    }

    @JsonProperty
    private String sid;
    @JsonProperty("state")
    private TradeState state;
    @JsonProperty("code")
    private String code;
    @JsonProperty("msg")
    private String msg;
    @JsonProperty("extension")
    private Map<String, Object> extension = new TreeMap<>();
}
